package com.cskaoyan.service;

import com.cskaoyan.bean.bo.RefundBo;
import com.cskaoyan.bean.bo.ShipBo;
import com.cskaoyan.bean.*;

import java.util.List;
import java.util.Map;

public interface MarketService {



    List<Region> getRegionList();



    Map<String,Object> getBrandList(Integer page, Integer limit, String sort, String order, Integer id, String name);
    Brand brandCreate(Brand brand);
    Integer brandUpdate(Brand brand);
    Integer brandDelete(Brand brand);



    List<Category> getCategoryList();
    List<Map> getCategoryL1();
    Category categoryCreate(Category category);
    Integer categoryUpdate(Category category);
    Integer categoryDelete(Category category);



    Map<String,Object> getIssueList(Integer page, Integer limit, String sort, String order, String question);
    Issue issueCreate(Issue issue);
    Integer issueUpdate(Issue issue);
    Integer issueDelete(Issue issue);



    Map<String,Object> getKeywordList(Integer page, Integer limit, String sort, String order, String keyword, String url);
    Keyword keywordCreate(Keyword keyword);
    Integer keywordUpdate(Keyword keyword);
    Integer keywordDelete(Keyword keyword);


    Map<String,Object> getOrderList(Integer page, Integer limit, String sort, String order,
                                    Integer userId, Integer orderSn, Short[] orderStatusArray);
    Map<String,Object> orderDetail(Integer id);

    int ship(ShipBo shipBo);

    int refund(RefundBo refundBo);
}
